import { View, Text, Image } from '@tarojs/components'
import back_img from '@/static/images/auth/back.png'
import Taro from '@tarojs/taro'


export default function CustomNavBar(props) {
    const back = () => {
        Taro.navigateBack({
            delta: props.delta || 1,
    })
    }
    return (
        <View style={{ backgroundColor: '#fff', height: '46px', lineHeight: '46px',padding:'20rpx', position: 'relative',display:'flex',alignItems:'center', margin: '40px 0 0 0' }}>
            <Image className='icon_global' mode='widthFix' style={{float:'left'}} src={back_img} onClick={back}></Image>
            <Text style={{ fontSize: '32rpx', fontWeight: 'bold',marginLeft:'280rpx' }}>{props.title}</Text>
        </View>
    )

}

